#ifndef COMMAND_H
#define COMMAND_H

#include <QWidget>
#include <QJSEngine>
#include <QSemaphore>
#include <QThread>

namespace Ui {
class Command;
}

class Command : public QWidget
{
    Q_OBJECT

public:
    explicit Command(QWidget *parent = 0);
    ~Command();

private:
    Ui::Command *ui;
	QJSEngine js;
	QSemaphore *sem;
	QThread		*thread;

signals:
	void recv_js_code(QString);

public slots:

	void print_log(QString str);
	
	

private slots:

    void on_textEdit_textChanged();

	//void print(QString str);
};

#endif // COMMAND_H
